package com.education.wisdom.service.impl;

import com.education.common.utils.Convert;
import com.education.wisdom.mapper.BannerMapper;
import com.education.wisdom.pojo.Banner;
import com.education.wisdom.service.IBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 广告位轮播 服务层实现
 *
 * @author ruoyi
 * @date 2018-12-26
 */
@Service
public class BannerServiceImpl implements IBannerService {
    @Autowired
    private BannerMapper bannerMapper;


    /**
     * 查询二级页面轮播图
     *
     * @return
     */
    @Override
    public List<Banner> selectBannerList() {
        return bannerMapper.selectBannerList();
    }

    /**
     * 首页视频位
     *
     * @return
     */
    @Override
    public Banner firstVideo() {
        return bannerMapper.firstVideo();
    }

    @Override
    public List<Banner> appBannerList() {
        return bannerMapper.appBannerList();
    }


}
